package com.hss.realmtest;

import io.realm.RealmObject;
import io.realm.annotations.Ignore;
import io.realm.annotations.PrimaryKey;
import io.realm.annotations.Required;
/*
*Realm数据库使用总结及采坑记录
* https://www.jianshu.com/p/b4b05c30201f
* */
public class Book extends RealmObject {
//    @Ignore
    public float price;
    @Required
    public String name;
//    @PrimaryKey
    public long id;

    @Override
    public String toString() {
        return "Book{" +
                "price=" + price +
                ", name='" + name + '\'' +
                ", id=" + id +
                '}';
    }
}
